package com.wanxi.util;

import javax.crypto.spec.PSource;
import java.util.Scanner;

public class MaxNum {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入第一个整数");
        int num1 = scanner.nextInt();
        System.out.println("请输入第二个整数");
        int num2 = scanner.nextInt();
        System.out.println("请输入第三个整数");
        int num3 = scanner.nextInt();
        System.out.println("先求出前两个数的最大值");
        int tempMax = num1 > num2 ? num1 : num2;
        System.out.println("前两个数的最大值为:" + tempMax);
        int max = tempMax > num3 ? tempMax : num3;
        System.out.println("最大值为" + max);
        int b=max+1;

    }
}
